package com.admin.service;

import com.admin.dbdao.MemberAdminDao;
import com.data.bean.Account;
import com.data.util.CheckDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员管理
 *
 * @author:HingLo
 * @create 2017-08-31 9:32
 **/
@Service
public class MemberAdminService {

    @Autowired
    private MemberAdminDao memberAdminDao;

    public List<Account> findMemberService(int types) {
        return (List<Account>) memberAdminDao.findMemberDao(types);
    }


    public boolean deleteMemberService(String id) {
        if (CheckDataUtils.stringUtilsID(id)) {
            return memberAdminDao.deleteMemberDao(id);
        }
        return false;
    }
}
